//
//  MainTableViewCell.m
//  WD-Movies
//
//  Created by 宋梦华 on 2019/1/24.
//  Copyright © 2019年 chuck. All rights reserved.
//

#import "MainTableViewCell.h"

@implementation MainTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
//    定义位置
       [self Frame];
    return self;
    
}
-(void)Frame{
//    我的信息
    _MessageBtn = [[UIButton alloc]init];
     [self.contentView addSubview:self.MessageBtn];
    self.MessageBtn.sd_layout
    .leftSpaceToView(self.contentView, 40)
    .topSpaceToView(self.contentView, 0)
    .widthIs(100)
    .heightIs(100);
//    图片
    UIImageView *img= [[UIImageView alloc]initWithFrame:CGRectMake(30, 20, 24, 24)];
    img.image = [UIImage imageNamed:@"my_icon_messiage_default_hdpi"];
    [_MessageBtn addSubview:img];
//    标题
    UILabel *label =[[UILabel alloc]initWithFrame:CGRectMake(10, 60, 80, 20)];
    label.text = @"我的信息";
    label.textColor = [UIColor blackColor];
    [_MessageBtn addSubview:label];
    
//    我的关注
    _GuanzhuBtn = [[UIButton alloc]init];
     [self.contentView addSubview:self.GuanzhuBtn];
    _GuanzhuBtn.sd_layout
    .leftSpaceToView(self.MessageBtn, 30)
    .topSpaceToView(self.contentView, 0)
    .widthIs(100)
    .heightIs(100);
//    图片
    UIImageView *img1= [[UIImageView alloc]initWithFrame:CGRectMake(30, 20, 24, 24)];
    img1.image = [UIImage imageNamed:@"my_icon_attention_default_hdpi"];
    [_GuanzhuBtn addSubview:img1];
//    标题
    UILabel *label1 =[[UILabel alloc]initWithFrame:CGRectMake(10, 60, 80, 20)];
    label1.text = @"我的关注";
    label1.textColor = [UIColor blackColor];
    [_GuanzhuBtn addSubview:label1];
    
//    购票记录
    _BuyticketBtn = [[UIButton alloc]init];
    [self.contentView addSubview:self.BuyticketBtn];
    _BuyticketBtn.sd_layout
    .leftSpaceToView(self.GuanzhuBtn, 30)
    .topSpaceToView(self.contentView, 0)
    .widthIs(100)
    .heightIs(100);
//    图片
    UIImageView *img2= [[UIImageView alloc]initWithFrame:CGRectMake(30, 20, 24, 24)];
    img2.image = [UIImage imageNamed:@"my_icon_rccord_default_hdpi"];
    [_BuyticketBtn addSubview:img2];
//    信息
    UILabel *label2 =[[UILabel alloc]initWithFrame:CGRectMake(10, 60, 80, 20)];
    label2.text = @"购票记录";
    label2.textColor = [UIColor blackColor];
    [_BuyticketBtn addSubview:label2];
    
}


@end
